package com.annotation.validator;

import org.apache.commons.lang.StringUtils;

import com.annotation.validator.FieldValidatorSupport;

public class RequiredStringValidator extends FieldValidatorSupport {

	@Override
	public void validate() {
		String value = getFieldValue();

		if (StringUtils.isBlank(value)) {
			this.addErrorCode(this.getFieldName(), this.getMessage());

		}
	}

}
